package com.ushine.design.design.c_behavioral_pattern.a_chain_of_responsibility.a_practice;

/**
 * 抽象工作者
 *
 * @author yls
 */
public abstract class Handler {
    //维持对下家的引用
    protected Handler successor;

    public void setSuccessor(Handler successor) {
        this.successor = successor;
    }

    public abstract void handleRequest(String request);
}
